package com.sxpi.chapter02.mysql;

import com.sxpi.chapter02.factory.IDataSourceFactory;

/**
 * @Author: 董伟豪
 * @Date: 2023/2/5 11:24
 */
public class MysqlDataSourceFacotry implements IDataSourceFactory {

    @Override
    public MysqlDruidDataSource createDruidDataSource(){
        return new MysqlDruidDataSource();
    }

    @Override
    public MysqlHikariCPDataSource createHikariCPDataSource(){
        return new MysqlHikariCPDataSource();
    }
}
